<!DOCTYPE HTML>
<html lang="ja">
<head>
	<?php echo $this->Html->charset(); ?>
	<?php echo $this->Html->meta('favicon.ico', $this->webroot.'img/favicon.ico', array('type' => 'icon')); ?>
	<?php
	echo $this->Html->css('common.css');
	echo $this->Html->css('admin.css');
	echo $this->Html->css('fullcalendar.css');
	echo $this->Html->css('fullcalendar.print.css', array(), array('media' => 'print'));
	echo $this->Html->css('colorbox.css');
	echo $this->Html->script(array(
		'plugin/jquery-1.8.2.min.js',
		'admin.js',
	));

	echo $scripts_for_layout;
	?>
	<title><?php echo $title_for_layout; ?></title>
</head>
<body>
<div id="wrapper">
	<?php if(is_array($userLogon) && isset($userLogon['Member']) && $userLogon['Member']['role'] === 'admin'): ?>
	<div id="header">
		<h1><?php echo $this->Html->link('Adams Campus 管理ページ', array('controller' => 'course', 'action' => 'index', 'admin' => true));?></h1>
		<ul id="globalNav">
			<li><?php echo $this->Html->link('クラスごとの決済情報を見る', array('controller' => 'CourseTransaction', 'action' => 'index'));?></li>
			<li><?php echo $this->Html->link('ユーザごとの決済情報を見る', array('controller' => 'user_transactions', 'action' => 'index'));?></li>
			<li><?php echo $this->Html->link('クラス一覧を見る', array('controller' => 'course', 'action' => 'index', 'admin' => true));?></li>
			<li class="right"><?php echo $this->Html->link('ログアウト', array('admin' => true, 'controller' => 'members', 'action' => 'logout'));?></li>
		</ul>
	</div>
	<?php endif;?>
	<div id="contents" class="clearfix">
		<?php echo $content_for_layout;?>
	</div>
</div>
<?php echo $this->element('sql_dump');?>
</body>
</html>